import axios from "../axios.js";

const students = {
    getStudents(params) {
        return axios({
            url: "/students/getStudents",
            method: "GET",
            params,
        })
    },
    deleteOneStudent(data) {
        return axios({
            url: "/students/deleteStudents",
            method: "DELETE",
            data,
        });
    },
    getOneStudentById(params) {
        return axios({
            url: "/students/getStudentsById",
            method: "GET",
            params,
        });
    },
    UpdateOneStudent(data) {
        return axios({
            url: "/students/updateStudents",
            method: "PUT",
            data,
        });
    },
    addOneStudent(data) {
        return axios({
            url: "/students/addStudents",
            method: "POST",
            data,
        });
    },
};

export default students;